<?php
class UserController extends CommonController{
	public function indexBefore(){
		$this->where='1=1';
		if(isset($_GET['name'])&&!empty($_GET['name'])){
			$this->where="name like '%{$_GET['name']}%'";
		}
		if(isset($_GET['uid'])&&!empty($_GET['uid'])){
			$this->where.=" and uid like '%{$_GET['uid']}%'";
		}
	}
}